home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / gl_dev.idb / usr / include / gl / spaceball.h.z / spaceball.h
C/C++ Source or Header  |  1996-12-06  |  2KB  |  47 lines

  1. #ifndef __GL_SPACEBALL_H__
  2. #define __GL_SPACEBALL_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7.  * spaceball.h
  8.  *
  9.  * Spaceball(TM) GL library supplement.
  10.  *
  11.  * Copyright (C) 1989, Spatial Systems Inc. All Rights Reserved.
  12.  * Spaceball is a registered trademark of Spatial Systems Inc.
  13.  *
  14.  * RESTRICTIONS
  15.  *
  16.  * The following code is licensed for use and redistribution provided
  17.  * the code is used exclusively in conjunction with a Spaceball.
  18.  * No portion may be used for other purposes without prior written
  19.  * permission from Spatial Systems Inc.  This notice must accompany
  20.  * any full or partial copies.
  21.  *
  22.  * PURPOSE
  23.  *
  24.  *    Declare functions/variables defined in libspaceball.a.
  25.  *
  26.  */
  27. extern short SbVERSION;        /* Spaceball firmware major version */
  28. extern short Sbversion;        /* Spaceball firmware minor version */
  29. extern short Sbvsent;        /* true if version is valid.        */
  30.  
  31. extern void sbbeep(char *);    /* causes Spaceball to beep */
  32. extern int sbexists(void);    /* returns TRUE if a Spaceball exists */
  33. extern void sbrezero(void);    /* re-zeros Spaceball */
  34. extern int sbversion(void);    /* returns current version of Spaceball */
  35. extern void sbprompt(void);    /* prompts sball for more data (obsolete) */
  36. extern void rotarbaxis(float, Coord, Coord, Coord, Matrix);
  37.             /* rotation about an arbitrary axis */
  38. extern void sbdominant(Coord *, Coord *, Coord *);
  39.             /* zero all but the largest of x, y, z */
  40. extern void sbdominate(Coord *, int);
  41.             /* zeros all but largest element of array */
  42.  
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* __GL_SPACEBALL_H__ */
  47.